<!DOCTYPE html>
<html>
	<head> 
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>我的</title>
		<link rel="stylesheet" href="__TMPL__Public/css/mul-downmenu.css" />
		<link rel="stylesheet" href="__TMPL__Public/css/normalize.css" />
		<link rel="stylesheet" href="__TMPL__Public/css/main.css?v2" />
		<link rel="stylesheet" href="__TMPL__Public/css/style.css" />
		<style type="text/css">
			.jiathisback{display: none;position: fixed;top: 0;left:0;z-index: 999;background: rgba(0,0,0,0.7); width: 100%;height: 100%;}
			.jiathis{width: 90%;margin-left: 5%; box-sizing: border-box; padding:15px 15px 80px; position: absolute;bottom: 50%;background: white;}
			.jiathis_style_32x32 .jiathis_txt{float: none!important;}
			.jiathis_style_32x32{display: flex;}
			.jiathis .jiathis_style_32x32 .jtico{padding-left: 0px!important;margin:auto;max-width:38px;padding-top:5px;background: url(__TMPL__Public/img/share.jpg)!important;}
			.jiathis_style_32x32 a{flex: 1;}
			.jiathis_style_32x32 .jtico_qq {
				   background-position: 0 0!important;
				}
			.jiathis .jiathis_style_32x32 .jtico_tsina{background-position: -111px 0!important;}
			.jiathis .jiathis_style_32x32 .jtico_qzone{background-position: -37px 0!important;}
			.jiathis .jiathis_style_32x32 .jtico_weixin{background-position: -74px 0!important;}
			.jiathis .jiathis_weixin_modal{margin: 0!important; top: 0!important;left: 0!important;width: 100%!important;}
			.logout{width: 80%;margin:20px 10%;line-height: 2rem;}
		</style>
		<script type="text/javascript">
			function imgerror(obj){
				obj.src = "/themes/simplebootx_mobile/Public/img/user/defaulthead.png";
			}
		</script>
	</head>
	<body>
		<!--<div class="header">
			我
		</div>-->
			<!--<empty name="login">
				<div class="mainbg-box">
					<img src="__TMPL__Public/img/userbg.jpg"/>
					<div class="warn-f pos-a">登录一下，发现美好空间！</div>
					<button class="pos-a">登 录</button>
				</div>
				<else/>
				
			</empty>-->
			<a href="{:U('HUser/userinfo')}" class="mainbg-box">
					<img src="__TMPL__Public/img/userbg.jpg"/>
					<div class="userhead">
						<img src="{$user.icon}" onerror="imgerror(this)">
					</div>
					<div class="userinfo" style="width:60%">
						<div class="name">{$user.nick}<span class="tip">
							<img src="{$user.picon}">{$user.grade}</span></div>
						<div class="number">互动号：{$user.user_uniq_id}</div>
					</div>
					<div class="right"><img src="__TMPL__Public/img/user/arrow-r.png"></div>
				</a>
	  <if condition="$hidead eq 0">
		<div class="linebg mt10">
			<a href="javascript:void(0);" onclick="jsnativechange()" class="line-i ebb">
				<img class="line-icon" src="__TMPL__Public/img/user/coin.png">
				<span class="line-before more-w">零钱</span>
				<span style="margin-left: 10px;" class="line-after"></span>
				<span class="line-arrow"><img src="__TMPL__Public/img/user/arrow-r.png"/></span>
			</a>
		</div>
		<div class="linebg mt10">
			<a href="{:U('HUser/recharge')}" class="line-i ebb">
				<img class="line-icon" src="__TMPL__Public/img/user/phone.png">
				<span class="line-before more-w">账户余额</span>
				<span style="margin-left: 10px;" class="line-after">&yen;{$user.balance}</span>
				<span class="line-arrow"><notempty name="login"><span class="light-f">{$user.balance}</span></notempty><img src="__TMPL__Public/img/user/arrow-r.png"/></span>
			</a>
			<a href="{:U('HUser/subscribe')}" class="line-i">
				<img class="line-icon" src="__TMPL__Public/img/user/minead.png">
				<span class="line-before more-w">我的广告</span>
				<span class="line-arrow"><img src="__TMPL__Public/img/user/arrow-r.png"/></span>
			</a>
		</div>
		</if>
		<div class="linebg">
			<a href="/HUser/resetpwd" class="line-i ebb">
				<img class="line-icon" src="__TMPL__Public/img/user/unlock.png">
				<span class="line-before more-w">修改密码</span>
				<span class="line-arrow"><img src="__TMPL__Public/img/user/arrow-r.png"/></span>
			</a>
			<a href="{:U('HUser/option')}" class="line-i ebb">
				<img class="line-icon" src="__TMPL__Public/img/user/option.png">
				<span class="line-before more-w">设置</span>
				<span class="line-arrow"><img src="__TMPL__Public/img/user/arrow-r.png"/></span>
			</a> 
			<!--<a href="javascript:void(0)" onclick="window.ocm.show()" class="line-i ebb">
				<img class="line-icon" src="__TMPL__Public/img/user/option.png">
				<span class="line-before more-w">设置</span>
				<span class="line-arrow"><img src="__TMPL__Public/img/user/arrow-r.png"/></span>
			</a>-->
			<a href="javascript:void(0)" onclick="sharejs()" class="line-i ebb">
				<img class="line-icon" src="__TMPL__Public/img/user/share.png">
				<span class="line-before more-w">分享</span>
				<span class="line-arrow"><img src="__TMPL__Public/img/user/arrow-r.png"/></span>
			</a>
			<a href="{:U('HUser/aboutus')}" class="line-i">
				<img class="line-icon " src="__TMPL__Public/img/user/favour.png">
				<span class="line-before more-w">关于我们</span>
				<span class="line-arrow"><img src="__TMPL__Public/img/user/arrow-r.png"/></span>
			</a>
		</div>

		<button onclick="jsnativeloginout()" class="logout prim-bg" type="button">退出登录</button>
		<!--<div class="footer">
			<a ><img src="__TMPL__Public/img/home.png"/><span>首页</span></a>
			<a ><img src="__TMPL__Public/img/friend.png"/><span>好友</span></a>
			<a href="grid.html" ><img src="img/web.png"/><span>格子广告</span></a>
			<a class="now"><img src="img/usernow.png"/><span>我的</span></a>
		</div>-->
		<!-- JiaThis Button BEGIN -->
		<script type="text/javascript">
			var jiathis_config = {
				 imageUrl:"http://bchat.ocmcom.com/__TMPL__Public/img/user/logo.png",
				 url:"http://appurl.cc/126633"
			}
		</script>
		<div id="jiathis" class="jiathisback">
			<div class="jiathis">
			<div class="jiathis_style_32x32">
				<a class="jiathis_button_qq"></a>
				<a class="jiathis_button_qzone"></a>
				<a class="jiathis_button_tsina"></a>
				<a class="jiathis_button_weixin"></a>
			</div>
		</div>
		<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
		</div>
		<!-- JiaThis Button END -->
		<div class="footerbody"></div>
	</body>
	<script src="__TMPL__Public/js/jquery-1.8.0.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="__TMPL__Public/js/main.js?{$version}"></script>
	<script type="text/javascript">
		$("#jiathis").click(function(){
			$(this).hide();
		});
		function sharelink(){
			$("#jiathis").show();
		}
		//分享
		function sharejs() {
			var ua = navigator.userAgent.toLowerCase();	
			if (ua.indexOf("iphone")>-1) {
				 location.href = 'ios://share';
			} else if (ua.indexOf("android")>-1) {
				window.ocm.sharejs();
			}
		}
		
		function closeshare(){
			$("#jiathis").hide();
		}
		//红包零钱
		function jsnativechange(){
			var ua = navigator.userAgent.toLowerCase();	
			if (ua.indexOf("iphone")>-1) {
				location.href = 'ios://changeMoney';
			} else if (ua.indexOf("android")>-1) {
				    window.ocm.Mychange();	
			}
		}
		
	</script>
</html>
